package com.project.pojo;

public class Notice {
    private long id;
    private String note;
    //公告类型(0停用，1维修)
    private long type;

    @Override
    public String toString() {
        return "Notice{" +
                "id=" + id +
                ", note='" + note + '\'' +
                ", type=" + type +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public long getType() {
        return type;
    }

    public String getTypeStr() {
        if (type == 1) {
            return "维修";
        } else {
            return "停用";
        }
    }

    public void setType(long type) {
        this.type = type;
    }
}
